<?php
header('content-type:text/html;charset=UTF-8');
//显示数据
echo '<h2 align="center">学生信息表</h2>';
echo '<table border="1" cellspacing="0" cellpadding="5" align="center" width="60%">';
echo '<tr align="center" backgroung="#87ceed"><th>id</th><th>姓名</th><th>邮箱</th><th>课程</th><th>成绩</th></tr>';
foreach ($rows as $rows) {
	echo '<tr align="center">';
	echo '<td>'.$rows['id'].'</td><td>'.$rows['name'].'</td><td>'.$rows['email'].'</td><td>'.$rows['course'].'</td><td>'.$rows['grade'].'</td>';
	echo '</tr>';
}
echo '</table>';